<template>
	<view class="wallet">
		<view class="wallet-top">
			钱包
		</view>
		<view class="wallet-box">
			当前余额
			<view class="wallet-box-content">
				<view class="wallet-box-content-b">11198.00</view><view class="wallet-box-content-span"> 元</view>
				<view class="wallet-box-right">
					<view class="chongzhi">充值</view>
					<view class="tuikuan">退款</view>
				</view>
			</view>
		</view>
		<hr/>
		<view class="wallet-item" @click="coupon">
			优惠券
			<view class="wallet-item-right">
				<img src="../../static/img/list_more_n.png" style='width: 10px;height: 17px;' />
			</view>
		</view>
		<view class="wallet-item">
			交易明细
			<view class="wallet-item-right">
				<img src="../../static/img/list_more_n.png" style='width: 10px;height: 17px;' />
			</view>
		</view>
		<view class="wallet-item" @click="other">
			其他
			<view class="wallet-item-right">
				<img src="../../static/img/list_more_n.png" style='width: 10px;height: 17px;' />
			</view>
		</view>
		<view class="wallet-item-end"></view>
	</view>
</template>

<script>
	export default{
		methods:{
			coupon(){
				uni.navigateTo({
					url:'./coupon'
				})
			},
			other(){
				uni.navigateTo({
					url:'./other'
				})
			}
		}
	}
</script>

<style>
	.wallet{
		width: 100%;
	}
	.wallet-top{
		background-color: #fff;
		font-size: 16px;
		color: #35374b;
		text-align: center;
		height: 80px;
		line-height: 100px;
		border-bottom: 1px solid #DEDFE2;
	}
	.wallet-box{
		background-color: #fff;
		margin: 12px;
		background-color: #3d9bfe; /* 不支持线性的时候显示 */
		background-image: linear-gradient(to bottom right, #ff843e , #fe4447);
		border-radius: 10px;
		padding: 30px 24px 0px 24px;
		color: #fff;
		font-size: 14px;
	}
	.wallet-item:hover{
		background-color: #eee;
	}
	.wallet-box-content{
		overflow: auto;
	}
	.wallet-box-content-b{
		float: left;
		font-weight: 400;
		line-height: 80px;
		font-size: 39px;
		color: #fff;
	}
	.wallet-box-content-span{
		font-size: 14px;
		margin-top: 40px;
		margin-left: 5px;
		float: left;
	}
	.wallet-box-right{
		float: right;
	}
	.chongzhi{
		height: 30px;
		line-height: 30px;
		font-size: 15px;
		background-color: #fff;	
		color: #fe4f52;
		border-radius: 20px;
		width: 90px;
		text-align: center;
	}
	.tuikuan{
		line-height: 14px;
		font-size: 14px;
		color: #ffffff;
		opacity: 0.9;
		margin-top: 20px;
		text-align: center;
	}
	hr{
		border: none;
		height: 6px;
		background-color: #f2f4f7;
	}
	.wallet-item{
		background-color: #fff;
		height: 60px;
		border-bottom: 1px solid #e1e1e3;
		margin: 0 12px 0 12px;
		padding-left: 10px;
		font-size: 15px;
		color: #35374B;
		line-height: 60px;
	}
	.wallet-item-right{
		float: right;
		font-size: 14px;
		color: #abacb4;
	}
	.wallet-item-right img{
		float: right;
		margin-top: 21px;
		margin-left: 6px;
		margin-right: 5px;
	}
	.wallet-item-end{
		height: 28px;
	}
</style>
